package com.ifacebox.arcsoft.face.model;

/**
 * @author znn
 */
public enum FaceStatusResponse {
    /**
     * 公共响应状态
     */
    SUCCESS(true, "成功"),
    FAILURE(false, "失败"),
    INVALID_PARAMETERS(false, "参数不完整"),
    NO_FACE(false, "未检测到人脸"),
    NO_LIVENESS(false, "活体检测失败");
    private boolean success;
    private String msg;

    FaceStatusResponse(boolean success, String msg) {
        this.setSuccess(success);
        this.setMsg(msg);
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
